#include <STC89C5xRC.H>
#include "Delay.h"
#include "Key.h"
#include "NiXie.h"
#include "Buzzer.h"

sbit Buzzer=P2^5;

unsigned char KeyNum;


void main()
{	
	NiXie(1,0);
	while(1)
	{
		KeyNum=Key();
		if(KeyNum)
		{	
			Buzzer_Time(100);
			NiXie(1,KeyNum);
		}
	}
}